﻿<?php

require_once 'init.php';
require_once('Zend/Search/Lucene.php');

$index = new Zend_Search_Lucene($config['index']['data_dir']);

//$hits = $index->find($argv[1]);
$hits = $index->find('album');

foreach ($hits as $hit) {
    echo $hit->id;
    echo $hit->score;
}

